Tables [dbo].[OrderCategoryParentLookup]
Properties
PropertyValue
Row Count3
Created10:31:30 AM Tuesday, March 02, 2010
Last Modified11:40:05 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_OrderCategoryParentLookup: OrderCategoryID\OrderCategoryParentIDOrderCategoryIDint4
No
Cluster Primary Key PK_OrderCategoryParentLookup: OrderCategoryID\OrderCategoryParentIDForeign Keys FK_OrderCategoryParentLookup_OrderCategory: [dbo].[OrderCategory].OrderCategoryParentIDOrderCategoryParentIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OrderCategoryParentLookup: OrderCategoryID\OrderCategoryParentIDPK_OrderCategoryParentLookupOrderCategoryID, OrderCategoryParentID
Yes
Foreign Keys Foreign Keys
NameUpdateDeleteColumns
FK_OrderCategoryParentLookup_OrderCategoryCascadeCascadeOrderCategoryParentID->[dbo].[OrderCategory].[OrderCategoryID]
SQL Script
CREATE TABLE [dbo].[OrderCategoryParentLookup]
(
[OrderCategoryID] [int] NOT NULL,
[OrderCategoryParentID] [int] NOT NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[OrderCategoryParentLookup] ADD CONSTRAINT [PK_OrderCategoryParentLookup] PRIMARY KEY CLUSTERED ([OrderCategoryID], [OrderCategoryParentID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderCategoryParentLookup] ADD CONSTRAINT [FK_OrderCategoryParentLookup_OrderCategory] FOREIGN KEY ([OrderCategoryParentID]) REFERENCES [dbo].[OrderCategory] ([OrderCategoryID]) ON DELETE CASCADE ON UPDATE CASCADE
GO
Uses
Used By